#include "nec.hpp"

bool is_letter(char c) {
	return isalpha(c) || c=='_';
}

bool is_alnum(char c) {
	return isalnum(c) || c=='_';
}

void error(string f,int l,int c,string err) {
	std::cerr<<f<<":"<<l<<":"<<c<<": "<<err<<std::endl;
	exit(1);
}